/**
 *@Time    : 2021/10/15 17:13
 *@Author  : Shuai Jhou
 *@File    : auth
 *@Software: GoLand
 */

package dao

import "go.zhoushuai.cn/go-programming-tour-book/blog-service/internal/model"

func (d *Dao) GetAuth(appKey, appSecret string) (model.Auth, error) {
	auth := model.Auth{AppKey: appKey, AppSecret: appSecret}
	return auth.Get(d.engine)
}
